﻿# CMakeList.txt: HelloOpenGL 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#
cmake_minimum_required (VERSION 3.8)

set(TARGET_NAME "HelloTriangle_Exercise1")
set(third_party "../third_party")
set(glfw_path "D:/Program Files/glfw")


project (${TARGET_NAME})

include_directories(
	"${glfw_path}/include"
	"${third_party}/glad/include"
)

set(HEADERS
	"${third_party}/glad/include"
	"${glfw_path}/include"
)

set(LINK_LIBS ${LINK_LIBS}
	"${glfw_path}/lib/glfw3.lib"
)
message(STATUS "LINK_LIBS: ${LINK_LIBS}")

add_executable ("exercise1"
	"${HEADERS}"
	"exercise1.cpp"
	"${third_party}/glad/src/glad.c")
target_link_libraries("exercise1" ${LINK_LIBS})

add_executable ("exercise2"
	"${HEADERS}"
	"exercise2.cpp"
	"${third_party}/glad/src/glad.c")
target_link_libraries("exercise2" ${LINK_LIBS})

add_executable ("exercise3"
	"${HEADERS}"
	"exercise3.cpp"
	"${third_party}/glad/src/glad.c")
target_link_libraries("exercise3" ${LINK_LIBS})